package com.du.spring5.bean;

/**
 * @author : DuJiabao
 * @Project : spring
 * @Time : 2021/4/9 19:43
 * @Desc :
 */
public class UserInstanceFactory {
  private static int count = 0;

  public User getUser(String name) {
    User user = new User();
    user.setId(count++);
    user.setName(name);
    return user;
  }
}
